#pragma once

#include "user.h"

struct DROPEX_DATA
{
	int ItemType;
	int ItemIndex;
	int ItemMinLevel;
	int ItemMaxLevel;
	int ItemMaxOption;
	int ItemLuck;
	int ItemSkill;
	int ItemExcellent;
	int ItemDur;
	int ItemDropRate;
	int MonsterMinLevel;
	int MonsterMaxLevel;
	int MonsterMap;

	DROPEX_DATA()
	{
		ZeroMemory(this, sizeof(*this));
	}
};

class DropEx
{
public:
	DropEx();
	~DropEx();
	void	Init();
	void	Load();
	void	ReadData(char * File);
	bool	DropItem(LPOBJ lpObj, LPOBJ lpTargetObj);
private:
	std::vector<DROPEX_DATA> m_Data;
};
extern DropEx g_DropEx;